$tag @p[nbt={UUID:$(chain_player)}] add player
execute as @p[tag=player,team=red] run function vs:item/streambarrier_spawner_repair_device/health {team:red}
execute as @p[tag=player,team=blue] run function vs:item/streambarrier_spawner_repair_device/health {team:blue}
tag @p[tag=player] remove player